import Vue from 'vue'
import VueRouter from 'vue-router'
import movieRouter from './movie/index'
import fileRouter from './file/index'
import cinemaRouter from './cinema/index'
Vue.use(VueRouter)

const routes = [
  movieRouter,
  fileRouter,
  cinemaRouter,
  {
    path:'/*',
    redirect:'/movie'
  }
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
